package com.itheima.properties;

import java.io.*;
import java.util.Properties;
import java.util.Set;

/*
Properties 最强大的功能
读写配置文件
 */
public class Demo03 {

    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();
        prop.load(new FileInputStream("day13\\aaa\\a.properties"));
        System.out.println(prop);
     /*   Set<String> keys = prop.stringPropertyNames();
        for (String key : keys) {
            prop.setProperty(key,Integer.parseInt(prop.getProperty(key))+1000+"");
        }

       // prop.forEach((k,v)-> System.out.println(k+"%%%"+v));
        prop.store(new FileOutputStream("day13\\properties\\peizhi.properties"),"每一个配置都加1000");
*/
    }
}
